package edu.zut.cs.software.cms.module.score.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.cms.base.domain.BaseEntity;

/**
 * 
 * @author admix
 *
 */
/*
 * It's a Score class to record the score about students
 * 
 * 
 */
@Entity
@Table(name = "T_SCORE")
public class Score extends BaseEntity<Long> {

/**
 * this is record score of all
 */
	private static final long serialVersionUID = -667004365917009034L;
	
	@Column
	String cid;
	/**
	 * this is class id code
	 */
	@Column
	String cname;
	/**
	 * this is class name
	 */
	@Column
	String clazz;
	/**
	 * this is student's class
	 */
	@Column
	String sid;
	/**
	 * this is student id code
	 */
	@Column
	String sname;
	/**
	 * this is student name
	 */
	@Column
	String usual_score;
	/**
	 * this is student's usual score and just like another class of performance
	 */
	@Column
	String final_score;
	/**
	 * this is student's final grade of paper
	 */
	@Column
	String total_score;
	/**
	 * this is all of grade
	 */
	@ManyToOne
	@JoinColumn(name = "performance_ID")
	Performance performance;

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getUsual_score() {
		return usual_score;
	}

	public void setUsual_score(String usual_score) {
		this.usual_score = usual_score;
	}

	public String getFinal_score() {
		return final_score;
	}

	public void setFinal_score(String final_score) {
		this.final_score = final_score;
	}

	public String getTotal_score() {
		return total_score;
	}

	public void setTotal_score(String total_score) {
		this.total_score = total_score;
	}

	public Performance getperPerformance() {
		return performance;
	}

	public void setPerformance(Performance performance) {
		this.performance = performance;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
}
